home *** CD-ROM | disk | FTP | other *** search
/ Game Programming in C++ - Start to Finish / GameProgrammingS.iso / Peon / PeonSDK-Win32-1.0.0.exe / {app} / PeonMain / include / CEGUI / falagard / CEGUIFalNamedArea.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-09-07  |  2.7 KB  |  89 lines

  1. /************************************************************************
  2.     filename:   CEGUIFalNamedArea.h
  3.     created:    Sun Jun 26 2005
  4.     author:     Paul D Turner <paul@cegui.org.uk>
  5. *************************************************************************/
  6. /*************************************************************************
  7.     Crazy Eddie's GUI System (http://www.cegui.org.uk)
  8.     Copyright (C)2004 - 2005 Paul D Turner (paul@cegui.org.uk)
  9.  
  10.     This library is free software; you can redistribute it and/or
  11.     modify it under the terms of the GNU Lesser General Public
  12.     License as published by the Free Software Foundation; either
  13.     version 2.1 of the License, or (at your option) any later version.
  14.  
  15.     This library is distributed in the hope that it will be useful,
  16.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  17.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  18.     Lesser General Public License for more details.
  19.  
  20.     You should have received a copy of the GNU Lesser General Public
  21.     License along with this library; if not, write to the Free Software
  22.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  23. *************************************************************************/
  24. #ifndef _CEGUIFalNamedArea_h_
  25. #define _CEGUIFalNamedArea_h_
  26.  
  27. #include "falagard/CEGUIFalDimensions.h"
  28.  
  29. // Start of CEGUI namespace section
  30. namespace CEGUI
  31. {
  32.     class CEGUIEXPORT NamedArea
  33.     {
  34.     public:
  35.         NamedArea() {}
  36.         NamedArea(const String& name);
  37.  
  38.         /*!
  39.         \brief
  40.             Return the name of this NamedArea.
  41.  
  42.         \return
  43.             String object holding the name of this NamedArea.
  44.         */
  45.         const String& getName() const;
  46.  
  47.         /*!
  48.         \brief
  49.             Return the ComponentArea of this NamedArea
  50.  
  51.         \return
  52.             ComponentArea object describing the NamedArea's current target area.
  53.         */
  54.         const ComponentArea& getArea() const;
  55.  
  56.         /*!
  57.         \brief
  58.             Set the Area for this NamedArea.
  59.  
  60.         \param area
  61.             ComponentArea object describing a new target area for the NamedArea..
  62.  
  63.         \return
  64.             Nothing.
  65.         */
  66.         void setArea(const ComponentArea& area);
  67.  
  68.         /*!
  69.         \brief
  70.             Writes an xml representation of this NamedArea to \a out_stream.
  71.  
  72.         \param out_stream
  73.             Stream where xml data should be output.
  74.  
  75.         \return
  76.             Nothing.
  77.         */
  78.         void writeXMLToStream(OutStream& out_stream) const;
  79.  
  80.     private:
  81.         String d_name;
  82.         ComponentArea d_area;
  83.     };
  84.  
  85. } // End of  CEGUI namespace section
  86.  
  87.  
  88. #endif  // end of guard _CEGUIFalNamedArea_h_
  89.